<?php

namespace App\View\Components;

use Illuminate\Http\Request;
use Illuminate\View\Component;

class FlatpickrDateRange extends Component
{
    public $label = '';
    /**
     * Create a new component instance.
     *
     * @return void
     */
    public function __construct(Request $request, $name = '', $label = '')
    {
        $this->name = $name;
        $this->label = $label;
    }

    /**
     * Get the view / contents that represent the component.
     *
     * @return \Illuminate\View\View|string
     */
    public function render()
    {
        return view('components.flatpickr-date-range', ['name' => $this->name]);
    }
}
